//
//  FlutterBmapStreamManager.m
//  flutter_bmap
//
//  Created by duanzujun on 2022/3/11.
//

#import "FlutterBmapStreamManager.h"

@implementation FlutterBmapStreamManager

+ (instancetype)sharedInstance {
    static dispatch_once_t onceToken;
    static FlutterBmapStreamManager *manager = nil;
    dispatch_once(&onceToken, ^{
        manager = [[FlutterBmapStreamManager alloc] init];
        FlutterBmapStreamHandler * streamHandler = [[FlutterBmapStreamHandler alloc] init];
        manager.streamHandler = streamHandler;
    });
    
    return manager;
}

@end


@implementation FlutterBmapStreamHandler

- (FlutterError*)onListenWithArguments:(id)arguments eventSink:(FlutterEventSink)eventSink {
    self.eventSink = eventSink;
    return nil;
}

- (FlutterError*)onCancelWithArguments:(id)arguments {
    
    return nil;
}

@end
